﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace Present.Commands
{
    public static class CommandExtensions
    {
        /// <summary>
        /// Execute a command with a null parameter
        /// </summary>
        /// <param name="command"></param>
        public static void Execute(this ICommand command)
        {
            Guard.IsNotNull(command, "command").Execute(null);
        }
    }
}
